package cn.com.nes.site.entity.vo.crm.sale;

import cn.com.nes.site.entity.bo.crm.sale.CopySaleOrderInfoBO;
import cn.com.nes.site.entity.vo.BaseVO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

@Data
public class CopySaleOrderVO extends BaseVO {

    /**
     * 源订单ID
     */
    @NotNull(message = "源订单ID")
    private Long sourceOrderId;

    /**
     * 目标订单名称
     */
    private String tartetOrderName;

    public CopySaleOrderInfoBO convertToCopySaleOrderInfoBo() {
        CopySaleOrderInfoBO copySaleOrderInfoBo = new CopySaleOrderInfoBO();
        BeanUtils.copyProperties(this, copySaleOrderInfoBo);
        return copySaleOrderInfoBo;
    }

}
